package com.aihna.system.domain.bo;

import com.aihna.system.domain.SysWechatConfig;
import com.aihna.common.core.validate.AddGroup;
import com.aihna.common.core.validate.EditGroup;
import com.aihna.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 微信配置业务对象 sys_wechat_config
 *
 * @author Joseph.Chen
 * @date 2024-05-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysWechatConfig.class, reverseConvertGenerate = false)
public class SysWechatConfigBo extends BaseEntity {

    /**
     * 微信配置ID
     */
    @NotNull(message = "微信配置ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * appid
     */
    @NotBlank(message = "appid不能为空", groups = { AddGroup.class, EditGroup.class })
    private String appid;

    /**
     * secret
     */
    @NotBlank(message = "secret不能为空", groups = { AddGroup.class, EditGroup.class })
    private String secret;

    /**
     * token
     */
    private String token;

    /**
     * aesKey
     */
    private String aesKey;

    /**
     * 消息格式，XML或者JSON
     */
    private String msgDataFormat;

    /**
     * 移动端用户类型
     */
    private Integer type;

    /**
     * 状态, 0失效, 1正常
     */
    private Integer status;

    /**
     * 描述
     */
    private String comments;


}
